package zack.gateway.center.domain.docker.model.vo;

import java.util.List;

/**
 *
 * 下游服务地址配置
 *  #设置下游服务器地址(java项目的地址)
 *     upstream  api01 {
 *         least_conn;
 *
 *         server 192.168.1.3:9001;
 *         server 192.168.1.3:9002;
 *     }
 * @author A1793
 */
public class UpstreamVO {
    // upstream  api01
    String name;
    // 负载策略；least_conn;、 ip_hash;
    String strategy;
    //服务端地址
    List<String> servers;

    public UpstreamVO(String name, String strategy, List<String> servers) {
        this.name = name;
        this.strategy = strategy;
        this.servers = servers;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStrategy() {
        return strategy;
    }

    public void setStrategy(String strategy) {
        this.strategy = strategy;
    }

    public List<String> getServers() {
        return servers;
    }

    public void setServers(List<String> servers) {
        this.servers = servers;
    }
}
